#include <iostream>
#include <sstream>
#include <string>

using namespace std;

istream &func(istream &is) {
  string s;
  while (is >> s) {
    cout << s << endl;
  }
  is.clear();
  return is;
}